/*
 ============================================================================
 Name		: SCOTestServerDocument.cpp
 Author	  : William Zhang
 Copyright   : all rights reserved.
 Description : CSCOTestServerDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "SCOTestServerAppUi.h"
#include "SCOTestServerDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CSCOTestServerDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CSCOTestServerDocument* CSCOTestServerDocument::NewL(CEikApplication& aApp)
	{
	CSCOTestServerDocument* self = NewLC(aApp);
	CleanupStack::Pop(self);
	return self;
	}

// -----------------------------------------------------------------------------
// CSCOTestServerDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CSCOTestServerDocument* CSCOTestServerDocument::NewLC(CEikApplication& aApp)
	{
	CSCOTestServerDocument* self = new (ELeave) CSCOTestServerDocument(aApp);

	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
	}

// -----------------------------------------------------------------------------
// CSCOTestServerDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CSCOTestServerDocument::ConstructL()
	{
	// No implementation required
	}

// -----------------------------------------------------------------------------
// CSCOTestServerDocument::CSCOTestServerDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CSCOTestServerDocument::CSCOTestServerDocument(CEikApplication& aApp) :
	CAknDocument(aApp)
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CSCOTestServerDocument::~CSCOTestServerDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CSCOTestServerDocument::~CSCOTestServerDocument()
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CSCOTestServerDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CSCOTestServerDocument::CreateAppUiL()
	{
	// Create the application user interface, and return a pointer to it;
	// the framework takes ownership of this object
	return new (ELeave) CSCOTestServerAppUi;
	}

// End of File
